package com.itheima.stock.api;

import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.InnerMarketVO;
import com.itheima.stock.vo.SectorAllVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zby
 * @created 2024-06-22 22:44
 * @description 对外暴露用户接口
 */
@RestController
@RequestMapping(path = "/api/quot")
public interface StockControllerAPI {

    //板块指数
    @GetMapping(path = "/sector/all")
    ResponseResult<List<SectorAllVO>> sectorAll();
    //大盘指数
    @GetMapping(path = "/index/all")
    ResponseResult<List<InnerMarketVO>> innerIndexAll();

    @GetMapping(path = "/stock/business/all")
    ResponseResult<List<StockBusiness>> getStockBusiness();

}
